package com.ruoyi.energy.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * 门禁入侵警告对象 omp_mj_guard_alarm
 *
 * @author cjie
 * @date 2021-07-29
 */
@Data
@ApiModel
public class MjGuardAlarm extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** Id */
    @ApiModelProperty(value = "Id")
    private String id;

    /** 设备Id */
    @Excel(name = "设备Id")
    @ApiModelProperty(value = "设备Id")
    private String deviceId;

    /** 入侵事件 */
    @Excel(name = "入侵事件")
    @ApiModelProperty(value = "入侵事件")
    private String alarmEvent;

    /** 处理结果 */
    @Excel(name = "处理结果")
    @ApiModelProperty(value = "处理结果")
    private String handleResult;

    /** 处理人 */
    @Excel(name = "处理人")
    @ApiModelProperty(value = "处理人")
    private String handler;

    /** 处理人联系电话 */
    @Excel(name = "处理人联系电话")
    @ApiModelProperty(value = "处理人联系电话")
    private String phone;

    /** 处理时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "处理时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "处理时间")
    private Date handleTime;

    /** 删除标志(0正常 1删除) */
    @ApiModelProperty(value = "删除标志(0正常 1删除)")
    private String delFlag;

    /** 租户Id */
    @Excel(name = "租户Id")
    @ApiModelProperty(value = "租户Id")
    private String tenantId;

    //以下属性为页面视图属性
    /** 设备名称 */
    @Excel(name = "设备名称")
    @ApiModelProperty(value = "设备名称")
    private String deviceName;

    /** 设备编号 */
    @Excel(name = "设备编号")
    @ApiModelProperty(value = "设备编号")
    private String deviceNum;

    /** 安装位置 */
    @Excel(name = "安装位置")
    @ApiModelProperty(value = "安装位置")
    private String installPosition;

    /** 日期下限*/
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "日期下限", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "日期下限")
    private Date beginDate;

    /** 日期上限*/
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "日期上限", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "日期上限")
    private Date endDate;
}
